IImage

Undocumented in source.

Members

Functions

convertPalettizedToRGBA
ubyte[] convertPalettizedToRGBA()
Undocumented in source.
getName
string getName()
Undocumented in source.
hasLoadedData
bool hasLoadedData()
Undocumented in source.
loadFromMemory
bool loadFromMemory(ubyte[] data, void delegate(IImage self) onSuccess, void delegate() onFailure)

loadMemory expects data to be decoded. This process is not instant on Web. A decision was made of putting successful and unsuccessful callbacks for that reason. Prefer using the onError callback rather than the bool return.

loadRaw
void loadRaw(ubyte[] pixels, int width, int height, ubyte bytesPerPixel)

loadRaw assumes that you already have the raw pixels to be put on CPU, so, there's no error checking.

monochromeToRGBA
ubyte[] monochromeToRGBA()
Undocumented in source.

Inherited Members

From IImageBase

getWidth
uint getWidth()
Undocumented in source.
getHeight
uint getHeight()
Undocumented in source.
getPixels
const(ubyte[]) getPixels()
Undocumented in source.
getBytesPerPixel
ubyte getBytesPerPixel()
Undocumented in source.
getBitsPerPixel
ushort getBitsPerPixel()
Undocumented in source. Be warned that the author may not have intended to support it.
getSizeBytes
size_t getSizeBytes()
Undocumented in source. Be warned that the author may not have intended to support it.
getPalette
const(ubyte[]) getPalette()
Undocumented in source.
hasPalette
bool hasPalette()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta